https://lagithenhi.com/how-to-record-cost-of-goods-sold-in-perpetual-inventory-system
How to record cost of goods sold in perpetual inventory system